#ifndef _RGB_H
#define _RGB_H

#include "stm32f10x.h"
#include "io_bit.h"
#include "delay.h"
#include "key.h"
#include "oled.h"

#define RGB_DATA_L  PBout(9)=0
#define RGB_DATA_H  PBout(9)=1

#define RGB_CLK_L   PBout(8)=0
#define RGB_CLK_H   PBout(8)=1


extern s16 r,g,b;
extern u8 rgb_arrow_flag;
extern u8 key_v;
extern u8 rgb_arrow_flag1;
extern u8 oled_flag;
extern u8 arrow_flag;











void RGB_Config(void);
u32 RGB_Inte(u8 r,u8 g,u8 b);
void RGB_Send_Data(u32 data);
void RGB_Control(u8 r,u8 g,u8 b);

void RGB_Fun(void);





#endif


